package com.xing.hosp.service;

import com.xing.hospital.model.hosp.Department;
import com.xing.hospital.model.hosp.DepartmentQueryVo;
import com.xing.hospital.model.hosp.DepartmentVo;
import com.xing.hospital.model.hosp.Schedule;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface DepartmentService {


    //上传科室信息接口
    void save(Map<String, Object> paramMap);

    //查询科室接口
    Page<Department> findPageDepartment(int page, int limit, DepartmentQueryVo departmentQueryVo);


    //删除科室接口
    void remove(String hoscode, String depcode);

    /**
     * 根据医院编号，查询医院所有科室列表
     *
     * @param hoscode
     * @return
     */
    List<DepartmentVo> findDeptTree(String hoscode);

    /**
     * 根据科室编号和医院编号,查询科室
     *
     * @param hoscode
     * @param depcode
     * @return
     */


    Department getDepartment(String hoscode, String depcode);

    //根据科室编号和医院编号，查询科室名称
    String getDepName(String hoscode, String depcode);


}
